#include "SeqList.h"

void Test()
{
	SeqList s;
	SeqListInti(&s);

	//SeqListPushBack(&s, 1);
	//SeqListPushBack(&s, 2);
	//SeqListPushBack(&s, 3);
	//SeqListPushBack(&s, 4);
	//SeqListPushBack(&s, 5);
	//SeqListShow(&s);

	//SeqListPopBack(&s, 1);
	//SeqListPopBack(&s, 2);
	////SeqListPopBack(&s, 2);
	////SeqListPopBack(&s, 1);
	//SeqListShow(&s);

	SeqListPushFront(&s, 1);
	SeqListPushFront(&s, 2);
	SeqListPushFront(&s, 3);
	SeqListPushFront(&s, 4);
	SeqListPushFront(&s, 5);
	SeqListShow(&s);

	/*SeqListPopFront(&s, 1);
	SeqListPopFront(&s, 1);
	SeqListPopFront(&s, 1);
	SeqListPopFront(&s, 1);
	SeqListPopFront(&s, 1);
	SeqListPopFront(&s, 1);
	SeqListShow(&s);*/

	//SeqListFind(&s, 6);

	SeqListInsert(&s, 2, 6);
	SeqListShow(&s);

	SeqListErase(&s, 2);
	SeqListShow(&s);

	SeqListDestroy(&s);
}

int main()
{
	Test();
	return 0;
}